package com.things8.iot.baseIot.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.things8.iot.baseIot.entity.ProjectDevice;
import com.things8.iot.baseIot.dao.ProjectDeviceMapper;
/**
 * @author  yzh
 * @date  2021/5/2 21:24
 * @version 1.0
 */
@Service
public class ProjectDeviceService{

    @Resource
    private ProjectDeviceMapper projectDeviceMapper;

    
    public int deleteByPrimaryKey(Long id) {
        return projectDeviceMapper.deleteByPrimaryKey(id);
    }

    
    public int insert(ProjectDevice record) {
        return projectDeviceMapper.insert(record);
    }

    
    public int insertSelective(ProjectDevice record) {
        return projectDeviceMapper.insertSelective(record);
    }

    
    public ProjectDevice selectByPrimaryKey(Long id) {
        return projectDeviceMapper.selectByPrimaryKey(id);
    }

    
    public int updateByPrimaryKeySelective(ProjectDevice record) {
        return projectDeviceMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(ProjectDevice record) {
        return projectDeviceMapper.updateByPrimaryKey(record);
    }

}
